package wwl.lsf.test.dongtaidaili;

import java.lang.reflect.Proxy;
import java.util.Scanner;

public class Proxyttkfz {

    public static void main(String[] args) {

        CunQian cunQian = new JiuCai();
        Object o = Proxy.newProxyInstance(cunQian.getClass().getClassLoader(), cunQian.getClass().getInterfaces(), new CunqianProxyHandler(cunQian));
        String name = o.getClass().getName();
        System.out.println("name = " + name);




        System.out.print("输入");
        Scanner scan = new Scanner(System.in);
        String read = scan.nextLine();
        System.out.println("输入数据：" + read);
    }
}
